package com.sj.tensquare.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author sj
 * @date 2020/12/7 - 17:13
 */
@Controller
public class ColourController {



    @GetMapping("/test")
    public String test( Model model){
        model.addAttribute("color","red");
        return "articles-list";
    }

    @GetMapping("/testone")
    public String test1( Model model){
        System.out.println("123");
        return "articles-list";
    }

    @GetMapping("/login")
    public String login(){
        //todo 1.用户发布文章
        return "login";
    }


}
